var url = require('url');
var template = require('templateConfig');
var main = require('main');
var module= require('module');
var form = require('form');

//模板配置
var tplArr = [];
var modalTpl =require('raw!../template/modal.txt'); 
tplArr['modal'] = template.compile(modalTpl.replace(/^\s*|\s*$/g, "")); 

//数据平铺
var data1 = {"list":[
				{"name":"商品数","key":"10"},
				{"name":"上架商品","key":"10"},
				{"name":"仓库商品","key":"0"},
			]};
 
function ClerkManager(){
    _this = this;
    this.main = function(){
        main.event(this,'tap','i-click'); 
        this.init();
    }
    this.createHtml = function(){
    	var html = module.getModule('','storesInfoBrief')+
            	   module.getModule(data1,'InfoTiled');
    	$('.ui-container').html(html);
    }
    this.init= function(){ 
    	this.createHtml();
    }
    return this.main();
};

var clerkManager = new ClerkManager();